package indi.zhifa.recipe.bailan.framework.enums.entity.vo;
import indi.zhifa.recipe.bailan.framework.enums.entity.po.SysTypeEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

@Schema(title = "类型VO")
public class SysTypeVo extends SysTypeEntity implements IEnumVo {
    @Setter
    @Schema(title = "类型项")
    List<SysTypeItemVo> items = new ArrayList<SysTypeItemVo>();

    @Override
    public IEnumItemVo[] getItems() {
        return items.toArray(new SysTypeItemVo[0]);
    }

}